-- GENERATED SPELL FOR [Darkened Spirit] --


function spell0_19480(pUnit, Event) --@Consuming Shadows,Self--
pUnit:FullCastSpellOnTarget(31293,pUnit)
pUnit:RegisterEvent('Sorts_19480', 6000, 1)
end

function Sorts_19480(pUnit, Event)
local choix_sorts_19480 = math.random(0, 0)
if choix_sorts_19480 == 0 then
pUnit:RegisterEvent('spell0_19480', 1, 1)
end
end

function mob19480_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19480', math.random(1500, 3000), 1)
end

function mob19480_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19480_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19480_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19480, 1, 'mob19480_Action')
RegisterUnitEvent(19480, 2, 'mob19480_Leave')
RegisterUnitEvent(19480, 3, 'mob19480_Kill')
RegisterUnitEvent(19480, 4, 'mob19480_Die')
